package com.cxl.service.impl;

import com.cxl.entity.Tenant;
import com.cxl.mapper.TenantMapper;
import com.cxl.service.ITenantService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 房客表 服务实现类
 * </p>
 *
 * @author cuixuelei
 * @since 2022-02-17
 */
@Service
public class TenantServiceImpl extends ServiceImpl<TenantMapper, Tenant> implements ITenantService {

    @Autowired
    private TenantMapper tenantMapper;

    @Override
    public Tenant getByTenant(Integer tid) {
        return tenantMapper.getByTenant(tid);
    }
}
